package com.ext.portlet.registration.service.impl;



import java.util.List;

import com.ext.portlet.registration.model.Mainstay;
import com.ext.portlet.registration.service.base.MainstayLocalServiceBaseImpl;
import com.ext.portlet.registration.service.persistence.MainstayUtil;
import com.liferay.portal.SystemException;


public class MainstayLocalServiceImpl extends MainstayLocalServiceBaseImpl {
	public List<Mainstay> getByStatus(Integer status) 
		throws SystemException {	
		
	return MainstayUtil.findByStatus(status);
	}	
	
	public Mainstay EmailValidation(String emailAddress) throws SystemException{
		return mainstayPersistence.fetchByEmailAddress(emailAddress);
	}
	
	public Mainstay getByLoginId(String loginId) throws SystemException {
		return MainstayUtil.fetchByLoginId(loginId);
	}
	
	public List<Mainstay> getByUserId(Long userId) 
		throws SystemException {	
	
		return mainstayPersistence.findByUserId(userId);
	}	
}
